VitePos_Lite\Libs\POS_Payment D

Total Complexity 265
Dependencies 19
Dependents 1
Total lines 1,647
Lines of code 1,099
Logical lines of code 704
Comment lines 376
Methods 40
Properties 18

Methods 40

Method Rating Maintainability Complexity Lines of code
create_order()
C
28
25 145
_complete_order()
C
34 26 93
set_fee_discount()
B
37 19 74
set_tax_after_discount_or_fee()
A
45 13 43
reverse_items_stock_on_canceled()
A
43 10 52
process_payment()
A
43 10 48
complete_order_payment()
A
46 10 39
update_items_stock()
A
44 9 48
check_checkout_discount_fee_limit()
A
53 10 23
capture_payment_intent()
A
50 9 28
is_ok_all_payment()
A
47 8 39
update_cash_drawer()
A
45 7 48
is_ready_to_checkout()
A
46 7 38
restaurant_checkout()
A
47 7 36
check_items_stock()
S
49 7 28
set_order_tax()
S
56 7 19
cancel_order()
S
49 6 32
grocery_checkout()
S
58 7 15
check_discount_limit()
S
58 7 14
restaurant_checkout_pay_first()
S
57 5 17
get_payment_name()
S
61 5 14
get_total_fee_or_discount()
S
59 5 13
get_order_details()
S
55 4 20
check_checkout_pre_order()
S
59 4 15
send_to_kitchen()
S
50 3 29
check_offline_pre_order()
S
60 4 13
get_order_complete_status()
S
64 4 11
add_time_by_status()
S
59 3 15
set_order_details()
S
61 3 12
clear_order_discount_fee()
S
68 3 7
get_payments()
S
64 3 10
get_outlet_address()
S
59 2 14
load_order()
S
68 2 7
get_payload()
S
78 2 3
update_order_meta()
S
69 2 7
__destruct()
S
74 2 5
__construct()
S
63 2 10
set_outlet()
S
72 1 5
calculate_totals()
S
71 1 6
has_payments()
S
76 1 4